<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<%@taglib prefix="shiro" uri="http://shiro.apache.org/tags"%>
<%@taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//Dtd HTML 4.01 Transitional//EN">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title>home</title>
<body>
<h2>Hello home!</h2>
<shiro:authenticated>
我是<shiro:principal></shiro:principal>
 <shiro:hasRole name="admin">我有管理员角色</shiro:hasRole>
<shiro:hasPermission name="role:query">我有查看角色权限</shiro:hasPermission> 

</shiro:authenticated>

</body>
</html>
